package com.hm.day45e.biz;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hm.day45e.dao.Type2Mapper;
import com.hm.day45e.model.Type2;
import com.hm.day45e.util.BusinessException;



@Service
public class Type2Biz {
	@Resource
	private Type2Mapper type2DAO;

	public List<Type2> findByType1(int t1Id) throws BusinessException {
		try {
			return type2DAO.findByType1(t1Id);
		} catch (Exception e) {
			e.printStackTrace();
			throw new BusinessException("E03B06");
		}
	}
}
